package com.ithinks.flow.common.utils.protocol.netty.serializable.msgpack;

import org.msgpack.annotation.Message;

/**
 * @Description
 * @ClassName User
 * @Author MR.LI
 * @date 2020.12.09 18:09
 */
@Message
public class User {

    private String id;
    private String userName;
    private int age;
    private UserContact userContact;

    public User(String userName,int age,String id){
        this.userName = userName;
        this.age = age;
        this.id = id;
    }

    public User(){}

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public UserContact getUserContact() {
        return userContact;
    }

    public void setUserContact(UserContact userContact) {
        this.userContact = userContact;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                ", userContact=" + userContact +
                '}';
    }
}
